package cn.analysys.component;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * chapter2-1-1：Spring Boot属性配置文件详解
 * @author jiangbang
 * @date 2017/4/13
 */
@Component
public class BlogProperties {
    @Value("${blog.name}")
    private String name;
    @Value("${blog.title}")
    private String title;
    @Value("${blog.desc}")
    private String desc;
    @Value("${blog.value}")
    private String value;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}